package com.itasura.chain;

import com.itasura.chain.doctor.RegisterChain;

/**
 * @author sailor wang
 * @date 2018/8/27 下午3:14
 * @description
 */
public class Main {
    public static void main(String[] args) {
        Person person = new Person("张三",18);

        Request request = Request.builder().desc("感觉不舒服,要去看医生").person(person).build();

        //骑着单车来到医院
        RegisterChain registerChain = new RegisterChain();
        registerChain.handleRequest(request);

    }
}